package edu.zcmu.seckill.service;

import edu.zcmu.seckill.entity.Admin;
import com.baomidou.mybatisplus.extension.service.IService;
import edu.zcmu.seckill.entity.SeckillProduct;
import edu.zcmu.seckill.response.R;
import edu.zcmu.seckill.vo.AddFromVo;
import edu.zcmu.seckill.vo.AdminLoginVo;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 唐诗
 * @since 2022-04-16
 */
public interface AdminService extends IService<Admin> {

    R login(AdminLoginVo loginVo);

    R getSeckillProduct(HttpServletRequest request);

    R getNormalProduct(HttpServletRequest request);

    R addSeckillProduct(AddFromVo addFromVo, HttpServletRequest request);

    R delSeckillProduct(int id, HttpServletRequest request);
}
